﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace DAL
{
    public class BaseDAL
    {
        MeKongDataContext meKongContext;
        public BaseDAL()
        {
            meKongContext = new MeKongDataContext();
        }

        public List<LoaiSP> GetAllLoadSP()
        {
            var res = from sp in meKongContext.LoaiSPs
                      select sp;
            return res.ToList<LoaiSP>();
        }
    }
}
